﻿using System;
using System.Collections;
using System.Collections.Generic;

namespace IceDog.Lib.People
{
    public class PersonComparerName : IComparer<Person>,IComparer
    {
        public static PersonComparerName Default
        {
            get
            {
                return new PersonComparerName();
            }
           
        }
        public int Compare(Person x, Person y)
        {
            return Comparer.Default.Compare(x.Name, y.Name);
        }

        public int Compare(object x, object y)
        {
            return this.Compare((Person)x, (Person)y);
        }
    }
}
